import Layout from '@/layout'
// 按模块来写路由配置
export default {
  path: '/employees', // 一级路由 // App.vue
  component: Layout,
  code: 'employees',
  children: [ // 配置二级路由
    {
      path: '',
      name: 'employees',
      component: () => import('@/views/employees'),
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      path: 'detail/:id',
      name: 'detail',
      component: () => import('@/views/employees/detail'),
      hidden: true
    }
  ]
}
